How the RecipePlus objects work at run time
The RecipePlus table is used to show and edit recipes at run time. It works with the RecipePlus selector, which selects a recipe file and unit to be acted upon, and the RecipePlus buttons, which determine what operation will be performed with the selected unit. The Save and Restore operations work on the table object.
On a graphics display, create a RecipePlus table, a RecipePlus selector, a RecipePlus button for the Save operation, and another RecipePlus button for the Restore operation.
To see a recipe file in the table, select the recipe file to display and press the Restore button. Once the recipe is shown in the table, you can edit the ingredients. To save the changes, press the Save button. To show another recipe, select it in the selector and press Restore.
Restore a recipe
When a recipe file is selected in the selector and a button with the Restore operation assigned to it is pressed, this is what happens:
- the selected recipe file and the associated recipe unit (tag set and data set) are opened in the RecipePlus table object.
- the recipe ingredients appear in the Ingredient column.
- the tag values in the tag set appear in the Current column.
- the values in the data set appear in the Recipe column.
- if the value in the Current column is different than the value in the Recipe column, an X appears in the Compare column.
- the tag names in the tag set appear in the Tag Name column.
- the status bar at the bottom of the table displays the recipe file name, the recipe unit name, the number of visible ingredients and the total number of ingredients.
Edit an ingredient
- Unless the View only property is checked in the Recipe tab, operators can make changes to the data value of a recipe ingredient.
- To change the value in the Recipe column, select the ingredient row in the table and press Enter.
- If the ingredient type is Numeric, an on-screen keypad appears. Type the new value into the scratchpad and press the Enter key to write the new value to the table.
- If the ingredient type is String, an on-screen keyboard appears. Type the new string and press Enter to write the new string to the table.
Save a recipe
When a recipe unit is selected in the selector and a button with the Save operation assigned to it is pressed, this is what happens:
- all the changes made in the Recipe column are saved back to the data set of the current recipe unit.
- the recipe file is updated on the storage card on the terminal and (if in the HMI project) in the runtime application *.mer file.
Use buttons with the RecipePlus table and selector
The following key buttons work with the table and selector objects:
- Move Up
- Move Down
- Page Up
- Page Down
- Home
- End
The following terminal keypad or external keyboard keys work with the table and selector objects:
- Cursor Up
- Cursor Down
- Page Up
- Page Down
- Home
- End
See also
Create a RecipePlus table
Create a RecipePlus Selector
Create a RecipePlus button